cc_library(
  name = "rpc",
  src = "rpc.cc",
  deps = []
)

cc_library(
  name = "rpc_service",
  src = "rpc_service.cc",
  deps = [ ":rpc",
           ":rpcmessage",
           "//io:byte_stream",
           "//net/base:connection"]
)

proto_library(
  name = "rpcmessage",
  src = "rpcmessage.proto",
  deps = []
)


cc_library(
  name = "rpc_channel",
  src = "rpc_channel.cc",
  deps = [ ":rpc",
           ":rpcmessage",
           "//io:byte_stream",
           "//base:callback",
           "//thread:thread",
           "//net/base:connection",
           "//net/base:client_connection"
           ]
)


cc_binary(
  name = "test",
  src = "test.cc",
  deps = [ ":rpc",
           ":rpcmessage",
           "//base:init",
           ":rpc_service",
           ":rpc_channel"]
)
